home *** CD-ROM | disk | FTP | other *** search
- global g_mouseh, g_mousev, fadetime, saver, movielist, keydetect, mode, captionmode, movieName, event
-
- on showmenu spnum, castname
- puppetSprite(47, 1)
- set the type of sprite 47 to 1
- set the ink of sprite 47 to 8
- set the visible of sprite 47 to 1
- set the locH of sprite 47 to the right of sprite spnum + (the width of cast castname / 2)
- if the mouseV > 320 then
- set the castNum of sprite 47 to the number of member (castname & ",C")
- else
- set the castNum of sprite 47 to the number of member castname
- end if
- if the mouseV > (480 - the height of cast the castNum of sprite 47) then
- set the locV of sprite 47 to the mouseV - the height of cast the castNum of sprite 47
- else
- set the locV of sprite 47 to the mouseV
- end if
- set the foreColor of sprite 47 to 255
- set the backColor of sprite 47 to 0
- if rollOver(spnum) then
- if (the mouseH <> g_mouseh) or (the mouseV <> g_mousev) then
- set g_mouseh to the mouseH
- set g_mousev to the mouseV
- set fadetime to the timer
- end if
- if the mouseDown then
- dontPassEvent()
- if item 2 of the name of cast the castNum of sprite 47 = "C" then
- set the visible of sprite 47 to 0
- updateStage()
- go(item 1 of the name of cast the castNum of sprite 47 & "C")
- dontPassEvent()
- abort()
- else
- set the visible of sprite 47 to 0
- updateStage()
- go(the frame)
- go(item 1 of the name of cast the castNum of sprite 47)
- abort()
- end if
- end if
- if the mouseV > 320 then
- set the castNum of sprite 47 to the number of member (castname & ",C")
- else
- set the castNum of sprite 47 to the number of member castname
- end if
- if the mouseV > (480 - the height of cast the castNum of sprite 47) then
- set the locV of sprite 47 to 480 - the height of cast the castNum of sprite 47
- else
- set the locV of sprite 47 to the mouseV
- end if
- updateStage()
- else
- set the visible of sprite 47 to 0
- updateStage()
- end if
- go(the frame)
- end
-
- on initsom
- set movielist to []
- repeat with i = 1 to 25
- addAt(movielist, i)
- end repeat
- end
-
- on startsom
- set movieName to getAt(movielist, random(count(movielist)))
- deleteAt(movielist, getPos(movielist, movieName))
- go(1, the pathName & "SOM:" & returndigit(movieName) & ",M")
- end
-
- on returndigit number
- set a to number / 10
- set b to number - (10 * a)
- return a & b
- end
-
- on startMovie
- global g_image
- if objectp(g_image) then
- g_image(mdispose)
- end if
- set fadetime to the timer
- set the keyDownScript to "checkkey"
- end
-